﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.SmartMecial.Services.WorkforceManage
{
    public class UpdateReplaceWorkService : IUpdateReplaceWorkService
    {

        public UpdateReplaceWorkService(IBaseRepository<ReplaceWorkModel> replaceWorkRep)
        {
            _replaceWorkRep = replaceWorkRep;
        }

        public IBaseRepository<ReplaceWorkModel> _replaceWorkRep { get; }

        public async Task<int> UpdateReplaceWork(ReplaceWorkModel model)
        {
           
            var update= await _replaceWorkRep.UpdateAsync(model);
            return  update;
        }
    }
}
